export const isNull = (object, objectStr) => {

}

function isType(type) {
  return function (obj) {
    return {}.toString.call(obj) === '[object ' + type + ']'
  }
}

let _cid = 0

function cid() {
  return _cid++
}

function deepClone(obj) {
  return JSON.parse(JSON.stringify(obj))
}

export default {
  isObject: isType('Object'),
  isString: isType('String'),
  isArray: Array.isArray || isType('Array'),
  isFunction: isType('Function'),
  isUndefined: isType('Undefined'),
  'cid': cid,
  'deepClone': deepClone
}
